Structures and Pointers
Things to remember
Attempts to access the fields of the structure John through PointerJohn that is defined as
wPointerJohn = &John;.
w‘.’ has higher precedence than *, so the expression
wwould be interpreted as:
wThe following expression is get out of the problem:
w
wAs an alternative notation that is equivalent to the preceding expression is:
*PointerJohn.Age
*(PointerJohn.Age)
(*PointerJohn).Age
PointerJohn->Age